### -*- coding: utf-8 -*- #############################################
# Разработано компанией Ключевые Решения (http://keysolutions.ru/)
# Все права защищены, 2006-2007
#
# Developed by Key Solutions (http://keysolutions.ru/)
# All right reserved, 2006-2007
#######################################################################

"""InstallMenu scripts

$Id: installmenu.py 26 2007-11-30 17:27:23Z Arvi3D $
"""
__author__  = "Arvid"
__license__ = "KSL"
__version__ = "$Revision: 26 $"
__date__ = "$Date: 2007-11-30 17:27:23 +0000 (Fri, 30 Nov 2007) $"

from ks.menu.interfaces import IStorageMenu
from ks.menu.menustoragezodb.storage import StorageMenu
from ks.menu.menustoragezodb.menucontext import MenuContext
from ks.menu.menustoragezodb.menuelement import MenuElement
from zope.app import zapi

from menuitems import all as menuitem_all
from ks.zcml.smartmenuitem.metaconfigure import BrowserSmartMenuItemMixin
#TODO: вынести
#from ksskin.browser.pages.sitemap.factory import SitemapMenuItemFactory

def installMenuItemRegistry(context, **kw):

    from ks.menu.install.install import installMenuItemRegistry
    return installMenuItemRegistry(context, scripts = menuitem_all, **kw)

def installStorageMenu(context, **kw):

    from ks.menu.install.install import installStorageMenu
    return installStorageMenu(context)
